package com.cxd.base.common.exception;


/**
 * @Title: <br/>
 * @Description: <br/>
 * @Copyright: Copyright (c) 2015<br/>
 * @Company: wlsnow<br/>
 * @author WTJ
 * @version
 */
public enum ExceptionEnum {
	
	
	JSONException("10052","JSON 解析有误"),
	NoMatchingObjectsException("10052","没有找到数据"),
	AuthInfoOutOfDateException("10051","认证码过期"),
	AuthInfoAlreadyActivedException("10050","认证信息已经被激活"),
	
	IllegalArgumentException("10004","不合法的参数异常"),
	InstantiationException("10003","实例化异常"), // 当试图通过newInstance()方法创建某个类的实例,而该类是一个抽象类或接口时,抛出该异常
	IllegalAccessException("10002","方法反射异常"),
	InvocationTargetException("10001","反射异常"),
	NoSuchMethodException("10000","调用了没有定义的方法");
	
	private String code;
	private String des;
	private ExceptionEnum(String code,String des){
		this.code = code;
		this.des = des;
	}
	
	public String getExceCode(){
		return code;
	}
	public String getExceDes(){
		return des;
	}
}
